import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../components/login.vue'
import mainPage from '../components/main.vue'
import help  from '../components/help.vue'
import homePage from '../components/homePage.vue'
import customer from '../components/customer.vue'

Vue.use(VueRouter)


const router = new VueRouter({
   
    routes: [{
            path: '/',
            component: login
        },
		{
			path: '/login',
			component: login
		}
		
		,
		{
			path: '/mainPage',
			component: mainPage,
			children:[
				{
					path:'/',
					name:'homePage',
					component:homePage
				},
				{
					path:'/homePage',
					name:'homePage',
					component:homePage
				},
				{
					path:'/customer',
					name:'customer',
					component:customer
				}
			]
		},
		{
			path: '/help',
			component: help
		}
    ]
})
export default router